import { http } from '@/utils/http'
// 引入ts类型
import type { goodsInfoType } from '@/types/hot'

// 获取特惠推荐模块数据的接口
export const getHotPageAPI = (url: string, page: number, pageSize: number, subType: string = '') => {
  return http<goodsInfoType>({
    method: 'GET',
    url,
    data: {
      subType,
      page,
      pageSize,
    },
  })
}
